﻿using System;

namespace SBPweb.MediaCenter.Common.Communication
{

    public interface IMessageQueue
    {

        event EventHandler<MessageEventArgs> Enqueued;

        event EventHandler<MessageEventArgs> Dequeued;

        event EventHandler<MessageEventArgs> Peeked;

        void Enqueue(IMessage message);

        IMessage Dequeue();

        IMessage Peek();

    }

}